package com.ruoyi.recycle.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("会员优惠券记录表")
@TableName("client_coupon")
public class ClientCoupon implements Serializable {

    private static final long serialVersionUID = -5709341282943341434L;
    private Integer id;
    @ApiModelProperty(name = "couponNo", value = "优惠券编号", dataType = "String")
    private String couponNo;
    @ApiModelProperty(name = "clientId", value = "会员ID", dataType = "Integer")
    private Integer clientId;
    @ApiModelProperty(name = "amount", value = "数量ID", dataType = "Integer")
    private Integer amount;
    @ApiModelProperty(name = "status", value = "状态（0.未使用，1.已使用，2.已过期）", dataType = "String")
    private String status;
    @ApiModelProperty(name = "createTime", value = "商品ID", dataType = "Date")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

}
